//---------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
#ifndef _PatternWeight_h__
#define _PatternWeight_h__
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
#include "libraries.h"
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
class PatternWeight { 

  private:


  protected:

    String* type;
    String* pattern;
    float   weight;

    String* toString;
    
  public:

    PatternWeight ();
    PatternWeight (const PatternWeight&);
    PatternWeight (const PatternWeight*);

    ~PatternWeight ();

    void    Type (String* type);
    void    Pattern (String* pattern);
    void    Weight (float weight);

    String* Type (void);
    String* Pattern (void);
    float   Weight (void);

    bool    ReadFromString (String* line);
    bool    ReadFromString (char* line);

    PatternWeight operator= (const PatternWeight& patternWeight);

};
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
#endif
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
